package com.zdya.combatdocuments.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.util.List;

@Data
@TableName("network")
public class Network {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "网络名称")
    private String name;

    @ApiModelProperty(value = "主节点用户账号")
    private String primaryName;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Long createDate;

    @ApiModelProperty(value = "创建用户账号")
    private String createName;

    @ApiModelProperty(value = "授权者mac地址")
    private String authorMac;

    @ApiModelProperty(value = "当前阶段")
    private Integer stage;

    @ApiModelProperty(value = "链id")
    private String chainId;

    @ApiModelProperty(value = "合约地址")
    private String contract;

    @ApiModelProperty(value = "主节点区块链节点信息")
    @TableField(exist = false)
    private String enode;

//    @ApiModelProperty(value = "主节点钱包地址")
//    @TableField(exist = false)
//    private String fromAddress;

    @ApiModelProperty(value = "主节点当前时间")
    @TableField(exist = false)
    private Long systemCurrentTime;

    @ApiModelProperty(value = "用户表list")
    @TableField(exist = false)
    private List<User> userList;



}
